package cn.zkld.service.impl;

import cn.zkld.dao.GoodsMapper;
import cn.zkld.model.GoodsInfo;
import cn.zkld.service.SelectGoodsListByIDService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 李景辉 on 2017/12/6.
 *
 *通过商品类id查找商品实现方法
 */

@Service
public class SelectGoodsListByIDServiceImpl implements SelectGoodsListByIDService{
    @Resource
    private GoodsMapper goodsMapper;
    /**
     * 通过商品类id查找商品实现方法
     * @param parent_id
     * @return
     */
    public List<GoodsInfo>  selectGoodsBySort(int parent_id){
        List<GoodsInfo> list=goodsMapper.selectGoodsBySortID(parent_id);
        return list;
    }
}
